/**
1,声明二维数组
2,填充“+”,首行添加0~9，a~f;列头添加0~9，a~f
3,打印
*/

import java.util.Arrays;

public class Checkerboard_Test{

	public static void main(String[] args) {

    //声明二维数组双层for循环;
	char[][] ch = new char[17][17];

	//数组元素填充
    
    //填充“+”
    for (int i = 1; i < ch.length; i++){
    	for (int j = 1; j < ch.length; j++){
    		ch[i][j] = '+';
    	}

    }

    //首行添加0~f;
    for (int j = 1; j <= 10;j++){
    	ch[0][j] = (char)(48+j-1);

    }
    for(int j=11; j<ch[0].length; j++) {
            ch[0][j] = (char)(86+j);
        }
        //(3)在列首添加0~9，a~f
        for(int i=1; i<=10; i++) {
            ch[i][0] = (char)(48+i-1);
        }
        for(int i=11; i<ch[0].length; i++) {
            ch[i][0] = (char)(86+i);
        }
       
        // 3.打印结果
        for(int i=0; i<ch.length; i++) { 
            for(int j=0; j<ch[i].length; j++) { 
                System.out.print(ch[i][j] + "   ");
            }
            System.out.println();
        }


	}
}